home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0045.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  858 b   |  30 lines

  1. Mike Crowl <mcrowl@earthlight.co.nz>
  2.    wrote:
  3. > Giday all,
  4. > just looking for some help in writing a tetris game. The bit I'd like 
  5. > some help with is how you would check to see if the block had hit another 
  6. > block and so on.
  7. > Any help would be much appreciated.
  8.  
  9. If you have AMOSPro, check out the Superblockout game that comes with it.
  10.  
  11. If not, look at the game MegaBlock2.lha in game/think on Aminet. It
  12. doesn't include the source code, but if you want it I'll send it to you.
  13.  
  14. The basic idea is to store the "well" area in a 2D array, and check
  15. the position in the array below the blocks current position before
  16. you move it. You also need to keep arrays containing each of the blocks,
  17. 4 for each block (one for each rotation).
  18.  
  19.  
  20. Dom
  21.  
  22. --
  23. Dominic Ramsey      email: dom@dynamo.demon.co.uk
  24. http://www.gate.net/user/play/people/dramsey.html
  25.  
  26.